<template>
	<view class="empty-content">
		<!-- <image class="empty-content-image" :src="setSrc" mode="aspectFit"></image> -->


		<button class="btn" @tap="toadd()">立即预约</button>

		<p>您还没有订单信息，快去参与回收领取奖励吧!~</p>
	</view>
</template>

<script>
	export default {
		props: {
			src: {
				type: String,
				default: 'empty'
			},
		},

		data() {
			return {
				typeSrc: {
					empty: '/static/img/nodata.png'
				},
			}
		},

		computed: {
			setSrc() {
				return this.typeSrc[this.src];
			},
		},
		methods: {
			toadd() {
				uni.switchTab({
					url: '/pages/tabBar/order/add'
				});
			},
		}
	}
</script>

<style lang="scss">
	.btn {
		background: linear-gradient(135deg, #0fD0C3, #3ebcc5);
		font-size: 28rpx;
		color: #fff;
		border: none;
		width: 80%;
		margin: 0 auto;
		line-height: 100rpx;
		letter-spacing: 1.5px;
	}

	.empty-content {
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;

		position: fixed;
		left: 0;
		top: 0;
		right: 0;
		bottom: 0;
		background: #f6f6f6;
		padding-bottom: 120upx;

		&-image {
			width: 600upx;
			height: 400upx;
		}

		p {
			color: #999;
			font-size: 27rpx;
			margin-top: 20rpx;
			display: block;
		}
	}
</style>